home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Technology Seed / Mac Tech Seed May '97.toast / Firewire 1.0 DDK / Source / OpenTransport / MakeFile < prev   
Encoding:
Makefile  |  1997-03-28  |  8.6 KB  |  278 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for Open Transport networking driver sample
  5. #                code.
  6. #
  7. #    Written by:    Erik Staats
  8. #
  9. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  10. #
  11. #    Change History (most recent first):
  12. #
  13. #      <FW31>     3/27/97    GG        Bumped version to 1.0 GM.
  14. #      <FW30>     3/19/97    GG        Bumped version to 1.0b3.
  15. #      <FW29>     3/12/97    GG        Bumped version to 1.0b2.
  16. #      <FW28>     2/19/97    GG        Bumped version to 1.0a3.
  17. #      <FW27>     2/11/97    GG        Bumped copyright to 1997.
  18. #      <FW26>     2/11/97    GG        Bumped version to 1.0a2.
  19. #      <FW25>      2/4/97    GG        
  20. #      <FW24>      2/4/97    GG        Bumped version to 1.0d24.
  21. #      <FW23>     1/28/97    GG        Bumped version to 1.0d23.
  22. #      <FW22>     1/27/97    ES        Changed protocol driver file type to 'ndrv'. Fixes bug #1621930.
  23. #      <FW21>     1/21/97    GG        Bumped version to 1.0d22.
  24. #      <FW20>     1/16/97    ES        Changed FWOTDriver file type to 'fwpd'.
  25. #      <FW19>      1/3/97    ES        Removed OTVDevice from build.
  26. #      <FW18>      1/2/97    GG        Bumped Version to 1.0d21.
  27. #      <FW17>    12/20/96    GG        Bumped Version to 1.0d20.
  28. #      <FW16>     12/6/96    GG        Bumped version to 1.0d19.
  29. #      <FW15>    11/14/96    GG        Bumped version to 1.0d18.
  30. #      <FW14>    10/31/96    ES        Bumped version to 1.0d17.
  31. #      <FW13>     10/2/96    ES        Bumped version to 1.0d15.
  32. #      <FW12>     9/12/96    ES        Bumped version to 1.0d14.
  33. #      <FW11>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  34. #                                    ETO #20 and forward.
  35. #      <FW10>     7/11/96    ES        Bumped version to 1.0d13.
  36. #       <FW9>     7/11/96    ES        Bumped version to 1.0d12.
  37. #       <FW8>     6/24/96    ES        Bumped version to 1.0d11.
  38. #       <FW7>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  39. #       <FW6>     5/30/96    ES        Bumped version to 1.0d10.
  40. #       <FW5>     4/19/96    ES        Updated to version 1.0d9.
  41. #       <FW4>     4/15/96    ES        Added some dependencies to FWOTDriver.
  42. #       <FW3>     3/29/96    ES        Bumped version to 1.0d8.
  43. #       <FW2>     3/28/96    ES        Fill in contains and written by fields.
  44. #       <FW1>     3/28/96    ES        first checked in
  45. #
  46. #
  47.  
  48. ################################################################################
  49. #
  50. # Define some directories
  51. #
  52.  
  53. FWOTDriverRootDir            =    :
  54.  
  55. FWSampleDir                    =    {FWOTDriverRootDir}::
  56.  
  57. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  58. OTInterfacesDir                =    {FWOTDriverRootDir}Interfaces:
  59.  
  60. SysLibrariesDir                =    {FWSampleDir}Libraries:
  61. OTLibrariesDir                =    {FWOTDriverRootDir}Libraries:
  62.  
  63. FWOTDriverSourceDir            =    {FWOTDriverRootDir}FWOTDriver:
  64.  
  65. BuildResultsDir                =    {FWSampleDir}BuildResults:
  66. ObjectsDir                    =    {BuildResultsDir}Objects:
  67. ExtensionsDir                =    {BuildResultsDir}Extensions:
  68.  
  69. ################################################################################
  70. #
  71. # Define version info
  72. #
  73.  
  74. FWVersion                    =    1
  75. FWRevision                    =    0
  76. FWBuildStage                =    Final
  77. FWBuildNumber                =    2
  78. FWShortVersionString        =    '"1.0 GM"'
  79. FWLongVersionString            =    '"1.0 GM, © 1995-97 Apple Computer, Inc."'
  80.  
  81.  
  82. ################################################################################
  83. #
  84. # Define stuff for 68K compilation
  85. #
  86.  
  87. C68KOptions                    =    -d ccompile                                    ∂
  88.                                 -b                                            ∂
  89.                                 -r                                            ∂
  90.                                 -i "{SysInterfaces}"                        ∂
  91.                                 -i "{CIncludes}"                            ∂
  92.                                 -mc68020
  93.  
  94. Asm68K                        =    Asm
  95.  
  96. C68K                        =    SC
  97.  
  98. Link68K                        =    Link
  99.  
  100.  
  101. ################################################################################
  102. #
  103. # Define stuff for PowerPC compilation
  104. #
  105.  
  106. MrCOptions                    =    -opt speed                                    ∂
  107.                                 -w 2,7,35                                    ∂
  108.                                 -d TRUE=1                                    ∂
  109.                                 -d FALSE=0                                    ∂
  110.                                 -i "{SysInterfacesDir}"                        ∂
  111.                                 -i "{OTInterfacesDir}"                        ∂
  112.                                 -i "{CIncludes}"
  113.  
  114. CPPCOptions                    =    {MrCOptions}
  115.  
  116. AsmPPC                        =    PPCAsm
  117.  
  118. AsmPPCOptions                =    -dialect PowerPC                            ∂
  119.                                 -o {Targ}
  120.  
  121. CPPC                        =    MrC
  122.  
  123. LinkPPC                        =    PPCLink
  124.  
  125.  
  126. ################################################################################
  127. #
  128. # Define stuff for rez
  129. #
  130.  
  131. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  132.                                 -d FWRevision={FWRevision}                    ∂
  133.                                 -d FWBuildStage={FWBuildStage}                ∂
  134.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  135.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  136.                                 -d FWLongVersionString={FWLongVersionString}
  137.  
  138.  
  139. ################################################################################
  140. #
  141. # Open Transport driver
  142. #
  143.  
  144. "{ObjectsDir}DLPIRoutines.c.o"    ƒ                                            ∂
  145.                             "{FWOTDriverSourceDir}DLPIRoutines.c"            ∂
  146.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  147.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  148.                             "{FWOTDriverSourceDir}HWSpecific.h"
  149.     {CPPC}                                                                    ∂
  150.         "{FWOTDriverSourceDir}DLPIRoutines.c"                                 ∂
  151.         -i "{FWOTDriverSourceDir}"                                            ∂
  152.         {CPPCOptions}                                                        ∂
  153.         -o {Targ}
  154.  
  155. "{ObjectsDir}EntryPoints.c.o"    ƒ                                            ∂
  156.                             "{FWOTDriverSourceDir}EntryPoints.c"            ∂
  157.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  158.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  159.                             "{FWOTDriverSourceDir}HWSpecific.h"
  160.     {CPPC}                                                                    ∂
  161.         "{FWOTDriverSourceDir}EntryPoints.c"                                 ∂
  162.         -i "{FWOTDriverSourceDir}"                                            ∂
  163.         {CPPCOptions}                                                        ∂
  164.         -o {Targ}
  165.  
  166. "{ObjectsDir}HWSpecific.c.o"    ƒ                                            ∂
  167.                             "{FWOTDriverSourceDir}HWSpecific.c"                ∂
  168.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  169.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  170.                             "{FWOTDriverSourceDir}HWSpecific.h"
  171.     {CPPC}                                                                    ∂
  172.         "{FWOTDriverSourceDir}HWSpecific.c"                                 ∂
  173.         -i "{FWOTDriverSourceDir}"                                            ∂
  174.         {CPPCOptions}                                                        ∂
  175.         -o {Targ}
  176.  
  177. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  178.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  179.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  180.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  181.                             "{FWOTDriverSourceDir}FWOTDriver.exp"
  182.     {LinkPPC}                                                                ∂
  183.         -t 'ndrv'                                                            ∂
  184.         -c 'fw  '                                                            ∂
  185.         -xm sharedlibrary                                                    ∂
  186.         -w                                                                     ∂
  187.         -@export "{FWOTDriverSourceDir}FWOTDriver.exp"                        ∂
  188.         -init InitCFMRoutine                                                ∂
  189.         -term TerminateCFMRoutine                                            ∂
  190.         "{ObjectsDir}DLPIRoutines.c.o"                                        ∂
  191.         "{ObjectsDir}EntryPoints.c.o"                                        ∂
  192.         "{ObjectsDir}HWSpecific.c.o"                                        ∂
  193.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  194.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  195.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  196.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  197.         "{SysLibrariesDir}PCILib"                                            ∂
  198.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  199.         "{OTLibrariesDir}OpenTptModuleLib"                                    ∂
  200.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  201.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  202.         -librename StdCLib.xcoff=StdCLib                                    ∂
  203.          -o {Targ}
  204.  
  205. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  206.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  207.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  208.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  209.                             "{FWOTDriverSourceDir}FWOTDriver.exp"            ∂
  210.                             "{FWOTDriverSourceDir}FWOTDriver.r"                ∂
  211.                             "{FWOTDriverRootDir}MakeFile"
  212.     Rez                                                                        ∂
  213.         {RezOptions}                                                        ∂
  214.         "{FWOTDriverSourceDir}FWOTDriver.r"                                    ∂
  215.         -a                                                                    ∂
  216.         -o {Targ}
  217.  
  218. "{ExtensionsDir}FWOTDriverLib"    ƒƒ                                            ∂
  219.                             "{ExtensionsDir}FWOTDriver"
  220.     Duplicate                                                                ∂
  221.         -y                                                                    ∂
  222.         "{ExtensionsDir}FWOTDriver"                                            ∂
  223.         {Targ}
  224.     SetFile                                                                    ∂
  225.         -t 'shlb'                                                            ∂
  226.         {Targ}
  227.  
  228.  
  229. ################################################################################
  230. #
  231. # Open Transport virtual device.
  232. #
  233.  
  234. "{ObjectsDir}OTVDevice.c.o"    ƒ                                                ∂
  235.                             "{FWOTDriverSourceDir}OTVDevice.c"                ∂
  236.                             "{FWOTDriverSourceDir}OTVDevice.h"
  237.     {CPPC}                                                                    ∂
  238.         "{FWOTDriverSourceDir}OTVDevice.c"                                     ∂
  239.         -i "{FWOTDriverSourceDir}"                                            ∂
  240.         {CPPCOptions}                                                        ∂
  241.         -o {Targ}
  242.  
  243. "{ExtensionsDir}OTVDevice"    ƒƒ                                                ∂
  244.                             "{ObjectsDir}OTVDevice.c.o"                        ∂
  245.                             "{FWOTDriverSourceDir}OTVDevice.exp"
  246.     {LinkPPC}                                                                ∂
  247.         -t 'vdev'                                                            ∂
  248.         -c 'fw  '                                                            ∂
  249.         -xm sharedlibrary                                                    ∂
  250.         -w                                                                     ∂
  251.         -@export "{FWOTDriverSourceDir}OTVDevice.exp"                        ∂
  252.         -main TheVDeviceDescription                                            ∂
  253.         "{ObjectsDir}OTVDevice.c.o"                                            ∂
  254.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  255.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  256.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  257.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  258.         "{SysLibrariesDir}PCILib"                                            ∂
  259.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  260.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  261.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  262.         -librename StdCLib.xcoff=StdCLib                                    ∂
  263.          -o {Targ}
  264.  
  265. "{ExtensionsDir}OTVDevice"    ƒƒ                                                ∂
  266.                             "{FWOTDriverSourceDir}OTVDevice.r"                ∂
  267.                             "{FWOTDriverRootDir}MakeFile"
  268.     Rez                                                                        ∂
  269.         {RezOptions}                                                        ∂
  270.         "{FWOTDriverSourceDir}OTVDevice.r"                                    ∂
  271.         -a                                                                    ∂
  272.         -o {Targ}
  273.  
  274.  
  275. FWOTDriver    ƒ                                                                ∂
  276.                         "{ExtensionsDir}FWOTDriver"                            ∂
  277.                         "{ExtensionsDir}FWOTDriverLib"
  278.